<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="keepass2android.plugin.qr"
    android:versionCode="2"
    android:versionName="1.0.1" >
    
    <uses-permission android:name="android.permission.CAMERA"/>
     <uses-permission
	    android:name="android.permission.FLASHLIGHT"
	    android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
	    android:protectionLevel="normal" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
	<uses-feature android:name="android.hardware.camera" android:required="false" />
	<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
	<uses-feature android:name="android.hardware.camera.flash" android:required="false"/>
	<uses-feature android:name="android.hardware.screen.portrait" android:required="false"/>

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="19" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="keepass2android.plugin.qr.QRActivity"
            android:label="@string/title_activity_qr" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

        <receiver
            android:name="keepass2android.plugin.qr.AccessReceiver"
            android:exported="true" >
            <intent-filter>
                <action android:name="keepass2android.ACTION_TRIGGER_REQUEST_ACCESS" />
                <action android:name="keepass2android.ACTION_RECEIVE_ACCESS" />
                <action android:name="keepass2android.ACTION_REVOKE_ACCESS" />
            </intent-filter>
        </receiver>
        <receiver
            android:name="keepass2android.plugin.qr.ActionReceiver"
            android:exported="true" >
            <intent-filter>
                <action android:name="keepass2android.ACTION_OPEN_ENTRY" />
                <action android:name="keepass2android.ACTION_ENTRY_OUTPUT_MODIFIED" />
                <action android:name="keepass2android.ACTION_ENTRY_ACTION_SELECTED" />
            </intent-filter>
        </receiver>

        <activity
            android:name="keepass2android.plugin.qr.MainActivity"
            android:label="@string/app_name" 
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.google.zxing.client.android.CaptureActivity" 
            android:label="Capture"
            android:screenOrientation="portrait"
           android:configChanges="orientation|keyboardHidden"
           android:windowSoftInputMode="stateAlwaysHidden">
            
        </activity>
        <activity android:name="com.google.zxing.client.android.PreferencesActivity"
            android:label="Settings" />
        
        
    </application>

</manifest>
